#pragma  once
#include "stdafx.h"

class ParametersModel;
class Common;
class Delegate;

class OilModel : public QObject
{
	Q_OBJECT
public:
	OilModel(QWeakPointer<Common> _common, const QString &_name);
	~OilModel();
	void init_model();
	QSharedPointer<ParametersModel> model;
	QString getName(){ return name;}
private:
	QWeakPointer<Common> common;
	QString name;
private slots:
	void update_parameters();
signals:
	void setModelData(const int &parent_row, const int &row, const QVariant &value);
};
